import request from '@/utils/request'

// 消息列表
export function getmessagelist (query) {
  return request({
    url: '/function/message/list',
    method: 'get',
    params: query
  })
}
// 消息列表
export function PostCreatedmessage (data) {
  return request({
    url: '/function/message',
    method: 'post',
    data
  })
}
// 接收者列表
export function getReceiverlist (query) {
  return request({
    url: '/function/message/receiver/list',
    method: 'get',
    params: query
  })
}
// 我的消息列表
export function getmessageuserlist (query) {
  return request({
    url: '/function/message/user/list',
    method: 'get',
    params: query
  })
}
// 全部已读
export function putmessage (data) {
  return request({
    url: '/function/message/user/allRead',
    method: 'put',
    data
  })
}
// 单个已读
export function putmess (data) {
  return request({
    url: '/function/message/user',
    method: 'put',
    data
  })
}